<template>
  <a-form-model :model="form" :label-col="labelCol" :wrapper-col="wrapperCol">
    <a-form-model-item label="名称">
                <a-input v-model="form.name" />
              </a-form-model-item>
    <a-form-model-item label="描述">
                <a-input v-model="form.description" />
              </a-form-model-item>
    <a-form-model-item label="用户">
                <a-input type="textarea"  v-model="form.staffsM" />
              </a-form-model-item>

    <a-form-model-item :wrapper-col="{ span: 14, offset: 4 }">
      <a-button type="primary" @click="onSubmit">
        Create
      </a-button>
      <a-button style="margin-left: 10px;">
        Cancel
      </a-button>
    </a-form-model-item>
  </a-form-model>
</template>
<script>
export default {
    name:"add",
  data() {
    return {
      labelCol: { span: 4,offset:2 },
      wrapperCol: { span: 16 },
      form: {
        name: '',
        region: undefined,
        date1: undefined,
        delivery: false,
        type: [],
        resource: '',
        desc: '',
      },
    };
  },
  methods: {
    onSubmit() {
      this.$emit('close')
      console.log('submit!', this.form);
    },
  },
};
</script>